#include <bits/stdc++.h>
using namespace std;
int t,n,m,l,v,c[3][100101],p[100101];
void solve(){
    cin>>n>>m>>l>>v;
    for(int i=1;i<=n;i++)
        cin>>c[0][i]>>c[1][i]>>c[2][i];
    for(int i=1;i<=m;i++)
        cin>>p[i];

}
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cin>>t;
    while(t--)
        solve();
    return 0;
}
